package com.fzl.lotterysystem.service;

import com.fzl.lotterysystem.controller.param.CreateActivityParam;
import com.fzl.lotterysystem.controller.param.PageParam;
import com.fzl.lotterysystem.controller.result.FindActivityListResult;
import com.fzl.lotterysystem.service.DTO.ActivityDTO;
import com.fzl.lotterysystem.service.DTO.ActivityDetailDTO;
import com.fzl.lotterysystem.service.DTO.CreateActivityDTO;
import com.fzl.lotterysystem.service.DTO.PageListDTO;

public interface ActivityService {
    /**
     * 创建活动，返回Id
     * @param param
     * @return
     */
    CreateActivityDTO createActivity(CreateActivityParam param);

    PageListDTO<ActivityDTO> findActivityList(PageParam pageParam);

    /**
     * 获取活动详细属性
     * @param activityId
     * @return
     */
    ActivityDetailDTO getActivityDetail(Long activityId);

    /**
     * 更新缓存详细信息
     * @param activityId
     */
    void cacheActivity(Long activityId);
}
